소스 검색

Fix threshold line colors

Deniz Cengiz 1 년 전
부모
커밋
f34afad0a0
1개의 변경된 파일2개의 추가작업 그리고 2개의 파일을 삭제
  1. 2 2
      FreeAPS/Sources/Modules/Home/View/Chart/MainChartView.swift

+ 2 - 2
FreeAPS/Sources/Modules/Home/View/Chart/MainChartView.swift

@@ -253,7 +253,7 @@ extension MainChartView {
                     glucoseValue: lowGlucose,
                     highGlucoseColorValue: highGlucose,
                     lowGlucoseColorValue: lowGlucose,
-                    targetGlucose: lowGlucose,
+                    targetGlucose: currentGlucoseTarget,
                     dynamicGlucoseColor: dynamicGlucoseColor,
                     offset: units == .mgdL ? 20 : 20.asMmolL
                 )
@@ -261,7 +261,7 @@ extension MainChartView {
                     glucoseValue: highGlucose,
                     highGlucoseColorValue: highGlucose,
                     lowGlucoseColorValue: highGlucose,
-                    targetGlucose: highGlucose,
+                    targetGlucose: currentGlucoseTarget,
                     dynamicGlucoseColor: dynamicGlucoseColor,
                     offset: units == .mgdL ? 20 : 20.asMmolL
                 )